package day05;

import java.util.Arrays;
import java.util.Scanner;

public class txt10 {
    public static void main(String[] args) {
        int[]a={0,0,0,0,0,0};
        Scanner sc=new Scanner(System.in);

        for(int i=0;i<=5;i++){
            int b=sc.nextInt();
            a[i]=b;
        }
        System.out.println(Arrays.toString(a));



        Arrays.sort(a);
        System.out.println(Arrays.toString(a));
        double s=0;
        for(int i=1;i<=4;i++){
            s=s+a[i];
        }
        System.out.println( s/4);


    }
}
